package top.shiyiri.stream2;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

/**
 * @author Aunean
 * @date 2022/1/10
 */
public class FileUtilsTest {


    public static void main(String[] args) {

        File srcFile = new File("data/photo/u029.png");
        File destFile = new File("data/photo/q.png");

        try {
            FileUtils.copyFile(srcFile, destFile);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
